package com.significantfiles.snapshot.engine.structure.id;

import java.math.BigInteger;


public class SequentialEntityIdFactory implements EntityIdFactory {

	private static BigInteger STEP = new BigInteger( "1" );
	
	private BigInteger cursor = new BigInteger( "1" );
	
	private BigInteger startAt = new BigInteger( "0" );
	
	@Override
	public BigInteger createNewId() {
		final BigInteger newId = cursor.add(STEP);
		
		return newId;
	}

}
